home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / WAIS / next-ui / BrowserBarChart.m < prev    next >
Encoding:
Text File  |  1992-02-03  |  538 b   |  31 lines

  1. // BrowserBarChart.m
  2. //
  3. // Free software created 1 Feb 1992
  4. // by Paul Burchard <burchard@math.utah.edu>.
  5.  
  6. #import "BrowserBarChart.h"
  7. #import "BarChartCell.h"
  8.  
  9. @implementation BrowserBarChart
  10.  
  11. - initFrame:(const NXRect *)frameRect
  12. {
  13.     return [super initFrame:frameRect cellClass:[BarChartCell class]];
  14. }
  15.  
  16. - setBarValue:(float)aValue at:(int)row
  17. {
  18.     return [[self cellAt:row] setBarValue:aValue];
  19. }
  20.  
  21. - (float)barValueAt:(int)row
  22. {
  23.     id cell;
  24.     
  25.     if(!(cell = [self cellAt:row])) return 0.0;
  26.     return [cell barValue];
  27. }
  28.  
  29. @end
  30.  
  31.